package com.springboot.template.thread.thread;

public class MyThread {
    public static void main(String[] args) {
        Thread t1 = new Thread() {
            public void run() {
                System.out.println("使用匿名内部类创建Thread子类对象");
                System.out.println(this.getName());
            }
        };
        t1.start();
    }
}
